import React, { Component } from 'react';
import {Text} from '@tarojs/components'
import "../../../../res/tadpole/iconfont.scss";
import '../../../../res/font/iconfont.scss';
import '../../../../res/car-font/iconfont.scss';
import '../../../../res/tabBarIcon/iconfont.scss';

type Props = {
  className?: string
  font?: string
  color?: string
  top?: string
  onClick?: any
  style?: any
}
export default class NewIcon extends Component<Props> {
  constructor(props: Props) {
    super(props);
  }

  render() {
    const {className, font, color, top, onClick, style = ''} = this.props
    return (
      <Text
        className={className}
        style={`font-size:${font}px; color: ${color}; position: relative; top: ${top}px;` + style}
        onClick={onClick && onClick}
      />
    )
  }
}
